home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d12 / cbibcode.arc / ASSERT.C < prev    next >
Encoding:
C/C++ Source or Header  |  1991-08-05  |  363 b   |  15 lines

  1. /* assert.c --- BIBLE pp. 75-76 */
  2. #include <stdio.h>
  3. #include <assert.h>
  4. main(int argc, char **argv)
  5. {
  6.     int i;
  7.             /* Make sure that there is more than one argument */
  8.     assert(argc > 1);
  9.                 /* Just print out the arguments */
  10.     printf("Thanks for these \"arguments\"\n");
  11.     for (i=0; i<argc; i++)
  12.     {
  13.         printf("Argument %d = %s\n", i+1, argv[i]);
  14.     }
  15. }